package com.ruoyi.equ.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备明细类型信息对象 equ_details_type
 * 
 * @author ruoyi
 * @date 2023-02-21
 */
public class EquDetailsType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备明细单id */
    private String id;

    /** 设备id */
    @Excel(name = "设备id")
    private String equId;

    /** 设备明细类型 */
    @Excel(name = "设备明细类型")
    private String type;

    /** 数量 */
    @Excel(name = "数量")
    private String nums;

    /** 页数 */
    @Excel(name = "页数")
    private String pages;

    /** 上传人 */
    @Excel(name = "上传人")
    private String uploader;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadtime;

    /** 变更人 */
    @Excel(name = "变更人")
    private String changer;

    /** 变更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changetime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setEquId(String equId) 
    {
        this.equId = equId;
    }

    public String getEquId() 
    {
        return equId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setNums(String nums) 
    {
        this.nums = nums;
    }

    public String getNums() 
    {
        return nums;
    }
    public void setPages(String pages) 
    {
        this.pages = pages;
    }

    public String getPages() 
    {
        return pages;
    }
    public void setUploader(String uploader) 
    {
        this.uploader = uploader;
    }

    public String getUploader() 
    {
        return uploader;
    }
    public void setUploadtime(Date uploadtime) 
    {
        this.uploadtime = uploadtime;
    }

    public Date getUploadtime() 
    {
        return uploadtime;
    }
    public void setChanger(String changer) 
    {
        this.changer = changer;
    }

    public String getChanger() 
    {
        return changer;
    }
    public void setChangetime(Date changetime) 
    {
        this.changetime = changetime;
    }

    public Date getChangetime() 
    {
        return changetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equId", getEquId())
            .append("type", getType())
            .append("nums", getNums())
            .append("pages", getPages())
            .append("uploader", getUploader())
            .append("uploadtime", getUploadtime())
            .append("changer", getChanger())
            .append("changetime", getChangetime())
            .toString();
    }
}
